package rs.networx.util;

import java.io.Serializable;

public enum ErrorMessages implements Serializable{

	USERNAME_ALREADY_IN_USE,
	LOGIN_FAILED,
	PROFILE_NOT_ACTIVE,
	USER_ALREADY_LOGGED_IN,
	INCORRECT_OLD_PASSWORD,
	INCORRECT_NEW_PASSWORD,
	NO_SEARCH_RESULTS,
	THERE_IS_SEARCH_RESULTS, INVALID_DATE_FORMAT, PERSON_HAVE_FRIENDS, PERSON_DO_NOT_HAVE_FRIENDS, PERSON_DO_NOT_HAVE_NOTTIFICATIONS, PERSON_HAVE_NOTTIFICATIONS, PERSON_HAVE_FRIEND_REQUESTS, PERSON_DO_NOT_HAVE_FRIEND_REQUESTS;

	public String toString(){
		String rezult = "";

		switch(this){
		case USERNAME_ALREADY_IN_USE:
			rezult = "USERNAME_ALREADY_IN_USE";
			break;
		case LOGIN_FAILED:
			rezult = "LOGIN_FAILED";
			break;
		case PROFILE_NOT_ACTIVE:
			rezult = "PROFILE_NOT_ACTIVE";
			break;
		case USER_ALREADY_LOGGED_IN:
			rezult = "USER_ALREADY_LOGGED_IN";
			break;
		case INCORRECT_OLD_PASSWORD:
			rezult = "INCORRECT_OLD_PASSWORD";
			break;
		case INCORRECT_NEW_PASSWORD:
			rezult = "INCORRECT_NEW_PASSWORD";
			break;
		case NO_SEARCH_RESULTS:
			rezult = "NO_SEARCH_RESULTS";
			break;
		case THERE_IS_SEARCH_RESULTS:
			rezult = "THERE_IS_SEARCH_RESULTS";
			break;
		}
		return rezult;
	}


}
